package com.zc.iotDevice.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.zc.iotDevice.domain.ChargeStationProduct;
import com.zc.iotDevice.mapper.ChargeStationProductMapper;
import com.zc.iotDevice.service.ChargeStationProductService;

import java.util.List;

@Service
public class ChargeStationProductServiceImpl implements ChargeStationProductService{

    @Resource
    private ChargeStationProductMapper chargeStationProductMapper;

    @Override
    public int deleteByPrimaryKey(String productId) {
        return chargeStationProductMapper.deleteByPrimaryKey(productId);
    }

    @Override
    public int insert(ChargeStationProduct record) {
        return chargeStationProductMapper.insert(record);
    }

    @Override
    public int insertSelective(ChargeStationProduct record) {
        return chargeStationProductMapper.insertSelective(record);
    }

    @Override
    public ChargeStationProduct selectByPrimaryKey(String productId) {
        return chargeStationProductMapper.selectByPrimaryKey(productId);
    }

    @Override
    public int updateByPrimaryKeySelective(ChargeStationProduct record) {
        return chargeStationProductMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ChargeStationProduct record) {
        return chargeStationProductMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ChargeStationProduct> listOfCategoryId(String categoryId) {
        return chargeStationProductMapper.listOfCategoryId(categoryId);
    }

}
